import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

// 导入两个模块
import newlist from './modules/newlist'
import catagtory from './modules/catagtory'

export default new Vuex.Store({
  state: {},
  getters: {
    catagtory: state => state.catagtory.catagtory, // 建立快捷访问
    currentCatagtory: state => state.catagtory.currentCatagtory, // 建立快捷访问
    allDate: state => state.newlist.allDate
  },
  mutations: {},
  actions: {},
  modules: {
    newlist,
    catagtory
  }
})
